﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using DAL;
namespace BLL
{
    public class Order_Buy_Detail_BLL
    {
        public static Order_Buy_Detail_DAL cls = new Order_Buy_Detail_DAL();
        #region[Get-Data]
        public DataTable GetDataOrderBuyTemp(int id)
        {
            return cls.GetDataOrderBuyTemp(id);
        }
        public DataTable GetDataOrderBuyTempQuality(int id)
        {
            return cls.GetDataOrderBuyTempQuality(id);
        }
        public DataTable GetDataOrderBuyEditQuality(int id)
        {
            return cls.GetDataOrderBuyEditQuality(id);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool InsertOrderBuyDetailTemp(ET.Order_Buy_Detail_Temp obj)
        {
            return cls.InsertOrderBuyDetailTemp(obj);
        }
        public static bool InsertOrderDetail(ET.ET_Order_Buy_Detail obj)
        {
            return cls.InsertOrderDetail(obj);
        }
        public static bool UpdateOrderQualityDetail(ET.Order_Buy_Detail_Temp obj)
        {
            return cls.UpdateOrderQualityDetail(obj);
        }
        public static bool UpdateOrderQualityOrderBuyDetail(ET.ET_Order_Buy_Detail obj)
        {
            return cls.UpdateOrderQualityOrderBuyDetail(obj);
        }
        public static bool InsertOrderBuyDetailMaterial(ET.ET_Order_Buy_Detail obj)
        {
            return cls.InsertOrderBuyDetailMaterial(obj);
        }
        public static bool DeleteOrderDetail(int id)
        {
            return cls.DeleteOrderDetail(id);
        }
        #endregion

        #region[Sum-Total]
        public DataTable SumOrderBuyDetailEdit(int id)
        {
            return cls.SumOrderBuyDetailEdit(id);
        }
        public DataTable SumOrderBuyDetailTemp()
        {
            return cls.SumOrderBuyDetailTemp();
        }
        #endregion

        #region[Check-Del]
        public bool CheckDelOrder(int id)
        {
            return cls.CheckDelOrder(id);
        }
        #endregion
    }
}